libs: Avoid exposing -Wl,--version-script to other built library
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 13 Oct 2022 13:05:05 +0000 (14:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2022 19:56:57 +0000 (20:56 +0100)
commit13c05b9efa2b825935ff9215575b53c1f9ad7965
treecdcf3254a6bbf31d0877e712d57d685973930fe2
parent4834dd5521a36cec118ed84b7c09a509edaafa6b
libs: Avoid exposing -Wl,--version-script to other built library

$(SHLIB_LDFLAGS) is used by more targets that the single targets that
except it (libxenfoo.so.X.Y). There is also some dynamic libraries in
stats/ that uses $(SHLIB_LDFLAGS) (even if those are never built), and
there's libxenlight_test.so which doesn't needs a version script.

Also, libxenlight_test.so might failed to build if the version script
doesn't exist yet.

For these reasons, avoid changing the generic $(SHLIB_LDFLAGS) flags,
and add the flag directly on the command line.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/libs/libs.mk